import { createRouter, createWebHistory } from 'vue-router'
import DocumentList from '../views/DocumentList.vue'
import Editor from '../views/Editor.vue'

const routes = [
  { path: '/', name: 'DocumentList', component: DocumentList },
  { path: '/editor/:documentId', name: 'Editor', component: Editor },
]

const router = createRouter({
  history: createWebHistory(),
  routes,
})

export default router 